package com.cadre.system;

import com.alibaba.fastjson.JSONArray;

import java.util.Map;

/* loaded from: ResumeStringBuild.class */
public class ResumeStringBuild extends SQLStringBuild {
    private String sql = "select DISTINCT(personid) flowid from A19 where ";
    public int flag = 0;

    @Override // com.tdqy.cadre.modular.profess.common.SQLStringBuild
    public String builder(Map<String, Object> map) {
        StringBuilder sqlbuilder = new StringBuilder();
        JSONArray valuestring = (JSONArray) map.get("valueString");
        for (int i = 0; i < valuestring.size(); i++) {
            if (i > 0) {
                sqlbuilder.append(" or ");
            }
            sqlbuilder.append(" a0177b LIKE '%").append(valuestring.get(i)).append("%'");
        }
        return sqlbuilder.toString();
    }

    public String builder_bak(Map<String, Object> map) {
        StringBuilder sqlbuilder = new StringBuilder(this.sql);
        JSONArray valuestring = (JSONArray) map.get("valueString");
        for (int i = 0; i < valuestring.size(); i++) {
            if (i > 0) {
                this.flag = 1;
                sqlbuilder.append(" or ");
            }
            sqlbuilder.append(" a1955 LIKE '%").append(valuestring.get(i)).append("%'");
        }
        return sqlbuilder.toString();
    }
}
